<!-- Begin suivi/invoice.tpl -->
{opentable}
	<tr class="sectiontableheader">
		<td width = "10%"><a href="{$url}&sort=gid&sens={$sens}">{$lg->group}</a></td>
		<td width = "10%" ><a href="{$url}&sort=idusr&sens={$sens}">{$lg->is_employee}</a></td>
		<td width = "10%"><a href="{$url}&sort=gid&sens={$sens}">{$lg->cdprj} FR</a></td>
		<td width = "10%"><a href="{$url}&sort=gid&sens={$sens}">{$lg->cdprj} MA</a></td>
		<td width = "10%">{$lg->ltext}</td>
		<td width = "10%" align="left">{$lg->cost}</td>
		<td width = "10%" align="left">{$lg->icost}</td>
	</tr>

	{if is_array($t_datas) }
		<!-- Par Users/ par Groups -->
		{foreach from=$t_grpnm key=gid item=name}
			<tr class="sectiontableentry2">
				<td  align="left" colspan = 7>{$name}</td>
				
			</tr>
				{foreach from=$t_datas[$gid] key=idusr item=t_proj}
						{foreach from=$t_proj key=prjfr item=t_prjma }
						<tr class="sectiontableentry1">
						<td ></td>
						<td nowrap >
							<a href="?module=time_sheet&action=show&userid={$idusr}&idate={$perio->plow->default}&fdate={$perio->phigh->default}&gid={$gid}">
								{$t_users[$idusr][0]} ({$t_users[$idusr][2]})
							</a>
						</td>
						<td >{$prjfr}</td>
							{foreach from=$t_prjma key=prjma item=cost }
								<td >{$prjma}</td>
								<td align="left">{$t_ac01[$prjma].name}</td>
								<td >{$cost}</td>
								<td ></td>
							{/foreach}
						{/foreach}			
						</tr>
				{/foreach}
			<tr class="sectiontableentry1">	
				<td align="left" colspan = 4> </td>
				<td align="left" ><B>{$lg->total}</B></td>
				<td align="left" ><B>{$t_group[$gid]} </B></td>
				<td align="left" >{if $t_esgrp[$gid] > 0} [{$t_esgrp[$gid]}] {/if}</td>
			</tr>
		{/foreach}
	{/if}

</table>

<!-- End  suivi/invoice.tpl -->